﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="sel_shipcompList.ascx.cs" Inherits="uswinweb.datacontrol.sel_shipcompList" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb2">
							<thead>
								<tr>
									<td>代码</td>
									<td>名称</td>
									<td>英文名</td>
								</tr>
							</thead>
							<tbody>
										<tr>
											<td><input id="shipcomp_search_txt_tcode" name="shipcomp_search_txt_tcode" value="<%=tcode %>"  onkeydown="if(event.keyCode==13){event.keyCode=9;}" onchange="add_shipcompsearch()" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:80px;" /></td>
											<td><input id="shipcomp_search_txt_name" name="shipcomp_search_txt_name" value="<%=name %>"  onkeydown="if(event.keyCode==13){event.keyCode=9;}" onchange="add_shipcompsearch()" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:80px;" /></td>
											<td><input id="shipcomp_search_txt_ename" name="shipcomp_search_txt_ename" value="<%=ename%>"  onkeydown="if(event.keyCode==13){event.keyCode=9;}" onchange="add_shipcompsearch()" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:80px;" /></td>
										</tr>
								<tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="shipcomp_luffy('','shipcomp_hidd','')">
									<td>&nbsp;</td>
									<td id="Td1" name="">不选择</td>
									<td>&nbsp;</td>
								</tr>
                                <% int i = 1;
                                   foreach (System.Data.DataRow dr in shipcompTab.Rows)
                                   { %>
								<tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="shipcomp_luffy('<%=dr["tcode"] %>','shipcomp_hidd','<%=dr["ename"] %>')">
									<td><%=dr["tcode"].ToString() == "" ? "&nbsp;" : dr["tcode"]%></td>
									<td id="shipcomp_hidd_<%=i %>" name="<%=dr["tcode"] %>"><%=dr["name"].ToString() == "" ? "&nbsp;" : dr["name"]%></td>
									<td><%=dr["ename"].ToString() == "" ? "&nbsp" : dr["ename"]%></td>
								</tr>
                                <%
                                    i++;
                                    } %>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="3">
                                    <%=pageList %>
                                    </td>
								</tr>
							</tfoot>
						</table>
                        <script>
                            function add_shipcompsearch() {
                                var tcode = document.getElementById('shipcomp_search_txt_tcode').value;
                                var name = document.getElementById('shipcomp_search_txt_name').value;
                                var ename = document.getElementById('shipcomp_search_txt_ename').value;
                                loading();
                                AjaxHelper.Updater('sel_shipcompList.ascx', 'showdata2', 'action=search&tcode=' + tcode + '&name=' + name + '&ename=' + ename + '');

                            }
                        </script>